package be.jaisy.osgi.console.ui.client.overview;

import be.jaisy.ui.gwt.client.widget.Sink;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Overview of the OSGI Console.
 */
public class Overview extends Sink {

	public static SinkInfo init() {
		return new SinkInfo("Overview", "<p>Overview of the OSGI Console</p>") {

			public Sink createInstance() {
				return new Overview();
			}
		};
	}

	public Overview() {

	    HorizontalPanel horz = new HorizontalPanel();
	    horz.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
	    horz.add(new Button("Button"));
	    horz.add(new HTML("<center>This is a<br>very<br>tall thing</center>", true));
		
	    VerticalPanel vp = new VerticalPanel();
	    vp.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
	    vp.setSpacing(8);
		initWidget(vp);
	}

	public void onShow() {
	}
}
